package com.xrui.hbaseview.ui;

public interface UIAction {

    /**
     * Executes the UI action.
     */
    void execute();

    /**
     * Gets a formatted message. The array might contain 1-3 elements where:
     * 1. The first part of the message if exist.
     * 2. The word/expression that describes the action.
     * 3. The last part of the message if exist.
     * <p>
     * For example:
     * new String[]{
     * "The selected table is disabled, do you want to",
     * "enable",
     * "it?"
     * };
     *
     * @return A three part message.
     */
    String[] getFormattedMessage();
}
